﻿namespace GIMS.Def.Arguments
{
    public enum Gravity
    {
        north,
        south,
        west,
        east,
        center,
        northWest,
        northEast,
        southWest,
        southEast
    }

    public class GravityArgument : Argument
    {
        private Gravity gravity = Gravity.northWest;
        

        public GravityArgument()
        {
            name = "Gravity Argument";
            type=Flags.ArgumentType.gravity;
        }

        public Gravity Gravity
        {
            get { return gravity; }
            set 
            { 
                gravity = value;
                OnPropertyChanged("gravity");
            }
        }

        //command property

        public override string CreateScriptPart()
        {
            return gravity.ToString();
        }
    }
}
